package com.usa.tool;

/**
 * @author YueGod
 * @since 2023/12/22
 */
public class ChristmasContent {

    public static void main(String[] args) {
        String text = "1.I've got a few drinks ready for New Year's. Care to swing by for a drink and some good vibes?\n" +
                "                              2.Ready for the New Year's night out？\uD83D\uDC8B\n" +
                "                             3.Hope in the new year, we can spend delightful hours together in the virtual world, building beautiful memories.";

        // 分割文本为行
        String[] lines = text.split("\n");

        StringBuilder processedText = new StringBuilder();
        for (String line : lines) {
            // 移除每行开头的数字和点号
            String processedLine = line.trim().replaceFirst("^\\d+\\.", "").trim();

            // 在行尾添加分号
            processedText.append(processedLine).append(";");
        }

        System.out.println(processedText.toString());
    }

}
